﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Entity;
using Utils;
using Library;
using DataContext;

namespace PaymentBLL
{
    public class CtrConvertAuAg
    {
        public uspConvertAuAgSelectResult SelectConvertAgToAu()
        {
            return DB.PaymentInstance.uspConvertAuAgSelect(1).FirstOrDefault();
        }
        public int UpdateConvertAgToAg(int fromAg, int toAu, bool isAcitve)
        {
            return DB.PaymentInstance.uspConvertAuAgUpdate(1, 0, 0, fromAg, toAu, false, isAcitve,string.Empty);
        }
    }
}
